package handler.nio;

import packet.Packet;

import java.nio.channels.SocketChannel;
import java.nio.channels.SelectionKey;
import java.io.IOException;

/**
 * Created by IntelliJ IDEA.
 * User: Qiukexu
 * Date: 2009-6-19
 * Time: 11:01:27
 * Company: Shanghai Fastech Co.,Ltd.
 */
public interface NHandler {
    Packet doHandle(SelectionKey key) throws IOException;
    void doReturn(SelectionKey key) throws IOException;
}
